package com.ruimei.entitys.enums;

import com.ruimei.util.CommUtil;

public enum LeaveStatus
{
  TIMEOUT("超时"),  PROCESSED("已查看"),  REFUSED("已拒绝"),  PROCESSING("待处理"),  REPLYED("已回复"),  RESCINDED("撤销");
  
  private String name;
  
  public static LeaveStatus values(String status)
  {
    if (CommUtil.isEmpty(status)) {
      return null;
    }
    switch (status)
    {
    case "TIMEOUT": 
      return TIMEOUT;
    case "PROCESSED": 
      return PROCESSED;
    case "REFUSED": 
      return REFUSED;
    case "PROCESSING": 
      return PROCESSING;
    case "REPLYED": 
      return REPLYED;
    case "RESCINDED": 
      return RESCINDED;
    }
    return null;
  }
  
  public static LeaveStatus value(Object status)
  {
    return values(String.valueOf(status));
  }
  
  private LeaveStatus(String name)
  {
    this.name = name;
  }
  
  public String getName()
  {
    return this.name;
  }
  
  public void setName(String name)
  {
    this.name = name;
  }
  
  public static LeaveStatus matching(String ch)
  {
    switch (ch)
    {
    case "超时": 
      return TIMEOUT;
    case "已处理": 
      return PROCESSED;
    case "已拒绝": 
      return REFUSED;
    case "处理中": 
      return PROCESSING;
    case "已回复": 
      return REPLYED;
    case "撤销": 
      return RESCINDED;
    }
    return PROCESSING;
  }
}


/* Location:              E:\360MoveData\Users\admin\Desktop\teacher_wap-0.0.1-SNAPSHOT.jar!\BOOT-INF\classes\com\ruimei\entitys\enums\LeaveStatus.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       0.7.1
 */